package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.home.HomeResourceSearchReq;
import com.yingsheng.bi.hks.dto.home.HomeResourceSearchRes;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 常用信息路由
 */
@FeignClient(contextId = FeignConst.HKS_ADDR, name = FeignConst.SERVICE_NAME)
@Api(tags = "常用信息", value = "常用信息")
public interface HomeFeignClient {

    @ApiOperation(httpMethod = "POST", value = "资源查询")
    @RequestMapping(value = "/home/homeResourceSearch")
    HomeResourceSearchRes homeResourceSearch(@RequestBody HomeResourceSearchReq req);
}
